import request from '@/router/axios';
// 获取列表
export const getList = (current, size, params) => {
    return request({
        url: '/api/blade-sale/originalmaterial/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

// 详情
export const detail = (id) => {
    return request({
        url: '/api/blade-sale/originalmaterial/detail',
        method: 'get',
        params: {
            id
        }
    })
}

// 保存
export const save = (data, ids) => {
    return request({
        url: '/api/blade-sale/originalmaterial/save',
        method: 'post',
        data: data,
        params: {
            ids
        }
    })
}

// 修改
export const update = (data, ids) => {
    return request({
        url: '/api/blade-sale/originalmaterial/update',
        method: 'post',
        data: data,
        params: {
            ids
        }
    })
}

//批量删除
export const remove = (ids) => {
    return request({
        url: '/api/blade-sale/originalmaterial/remove',
        method: 'post',
        params: {
            ids
        }
    })
}
// 材料牌号
export const getMaterialList = () => {
    return request({
        url: '/api/hg-public/materialinfo/getMaterialInfos',
        method: 'get',
        params: {
        }
    })
}
//获取基础信息原辅材料牌号列表
export const getOriginalmaterialList = () => {
    return request({
        url: '/api/blade-sale/originalmaterial/list',
        method: 'get',
        params: {
        }
    })
}